package com.zmxstudy.rbac.entity;

import org.springframework.web.bind.annotation.RequestAttribute;

public class UserAndRole {
    private int userId;

    private int roleId;


    private String username;
    private String roleName;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getUsername() {
        return username;
    }

    @Override
    public String toString() {
        return "UserAndRole{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                ", username='" + username + '\'' +
                ", roleName='" + roleName + '\'' +
                '}';
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public UserAndRole(int roleId , int  userId, String username, String roleName) {
        this.userId = userId;
        this.roleId = roleId;
        this.username = username;
        this.roleName = roleName;
    }
}
